package com.his.dao.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author fall
 * @since 2022-11-28
 */
@Getter
@Setter
@TableName("t_role_menu")
@ApiModel(value = "RoleMenu对象", description = "")
public class RoleMenu extends Model<RoleMenu> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "menu_role_id", type = IdType.AUTO)
    private Integer menuRoleId;

    @TableField("menu_id")
    private Integer menuId;

    @TableField("role_id")
    private Integer roleId;


    @Override
    public Serializable pkVal() {
        return this.menuRoleId;
    }

}
